﻿#region All usings
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
#endregion


namespace senSimulator.DrawableComponents.TrafficLights
{
    class TrafficLane : DrawableComponent
    {

        /// <summary>
        /// Constructor
        /// </summary>
        public TrafficLane(Game game, Texture2D[] textureNames, Vector2[] textureCenters, int posX, int posY, int rotationInDegrees)
            : base(game, textureNames, textureCenters, posX, posY, rotationInDegrees)
        {}


        /// <summary>
        /// This is called when the game should draw itself.
        /// </summary>
        /// <param name="gameTime">Provides a snapshot of timing values.</param>
        public void Draw(GameTime gameTime, SpriteBatch spriteBatch)
        {
            //Draw the lane
            spriteBatch.Draw(_textures[0], _texturePosition, null, Color.White, _rotationInDegrees, _textureCenters[0], 1.0f, SpriteEffects.None, 0);
        }
    }
}
